package visitor.billtypes;

import visitor.Bill;
import visitor.Formatter;

public class BillType3 implements Bill {
    String name;
    Float value;

    public BillType3(String name, Float value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getValue() {
        return value;
    }

    public void setValue(Float value) {
        this.value = value;
    }

    @Override
    public void accept(Formatter formatter) {
        formatter.format(this);
    }
}
